const p = new Promise((resolve, reject) => {
    resolve('ok');
});
//当有多个回调时 这些回调都会执行
p.then(value => {
    console.log(value);
});
p.then(value => {
    alert(value);
})